﻿using AutoMapper;
using BCDto.Sim.Admin.StaffOrganizationMappingRecord;
using BCEntity.Sim.Admin.StaffOrganizationMappingRecord;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.Sim.Admin.StaffOrganizationMappingRecord
{
    public class StaffOrganizationMappingRecordProfile : Profile
    {
        public StaffOrganizationMappingRecordProfile()
        {

            //员工组织映射记录
            CreateMap<StaffOrganizationMappingRecordDto, StaffOrganizationMappingRecordEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffOrganizationMappingRecordRequestDto, StaffOrganizationMappingRecordPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffOrganizationMappingRecordRequestDto, StaffOrganizationMappingRecordEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffOrganizationMappingRecordPutDto, StaffOrganizationMappingRecordEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffOrganizationMappingRecordEntity, StaffOrganizationMappingRecordDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffOrganizationMappingRecordEntity, StaffViewEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffOrganizationMappingRecordDto, StaffViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffViewEntity, StaffViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<StaffViewDto, StaffViewEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
